<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h3>修改用户</h3>
<hr/>
<form th:action="@{/users/editUser}" method="post">
    <input type="hidden" name="userId" th:value="${user.userId}">
    姓名：<input type="text" name="userName" th:value="${user.userName}"/><br/>
    密码：<input type="text" name="password" th:value="${user.password}"/><br/>
    用户类型：<input type="radio" name="userType" th:checked="${user.userType==0}" value="0"/>管理员
    <input type="radio" name="userType" th:checked="${user.userType==1}" value="1"/>普通用户<br/>
    角色ID：<input type="text" name="roleId" th:value="${user.roleId}"/><br/>
    描述：<input type="text" name="userDescription" th:value="${user.userDescription}"/><br/>
    时间：<input type="date" name="inputDate" th:value="${#dates.format(user.inputDate,'yyyy-MM-dd')}"/><br/>
    <input type="submit" value="确定"/><br/>
</form>
</body>
</html>